<template>
  <v-card flat height="168">
    <v-spacer class="d-flex dialog-content">
      <v-col class="bold-text"> Are you sure to delete the contact? </v-col>
      <v-col class=""> {{ propItem.type }} {{ propItem.description }}</v-col>
      <v-col>
        <v-tooltip bottom>
          <template v-slot:activator="{ on, attrs }">
            <v-btn
              v-on="on"
              v-bind="attrs"
              width="32"
              height="32"
              color="#D9D9D9"
              fab
              elevation="0"
              class="send-btn ml-2"
              @click="deleteContact"
            >
              <v-icon class="send-icon" color="#556282" small>
                mdi-delete
              </v-icon>
            </v-btn>
          </template>
          <span>Delete Contact</span>
        </v-tooltip>
      </v-col>
    </v-spacer>
  </v-card>
</template>
<script lang="ts">
import { Vue, Component } from "vue-property-decorator";
@Component({
  props: {
    item: {
      type: Object,
      default: () => ({}),
    },
  },
})
export default class DeleteContact extends Vue {
  get propItem() {
    return this.$props.item;
  }

  deleteContact() {
    this.$emit("delete", this.propItem);
  }
}
</script>
<style lang="scss" scoped>
@import "@/components/Quotation/Dialog/Dialog.scss";
</style>
